package com.share.service;

import com.share.dao.BaseDao;
import com.share.dao.IBaseDao;
import com.share.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * author:caifan
 * date:2019/7/22
 */
@Service
public class StudentService implements IStudentService {

    @Autowired
    private IBaseDao baseDao;

    @Transactional
    public void saveStudent(Student student) {
        baseDao.save(student);
    }
}
